package com.qfedu.mtl.service;

import com.qfedu.mtl.entity.Roles;
import com.qfedu.mtl.util.page.Pager;
import com.qfedu.mtl.vo.TreeVO;

import java.util.List;

/**
 * @version v1.0
 * @Date 2023/9/26 19:16
 * @Author DARKER
 * @Email 1402216045@qq.com
 */
public interface RoleService {
    int add(Roles roles);

    int delById(String id);

    int updateById(Roles roles);

    Pager<Roles> findPage(Integer page, Integer size, Roles role);

    List<Roles> findAllRole();


    void delBatchById(List<Integer> ids);

    void grant(Integer roleId, List<Integer> menuIds);

    List<TreeVO> findAvailableMenus();
}
